package pers.richard.example.dao;


import com.github.pagehelper.PageHelper;

import pers.richard.example.po.WechatOfficialAccount;
import pers.richard.example.po.WechatOfficialAccount.Field;
import pers.richard.ormybatis.annotation.DaoConfig;
import pers.richard.ormybatis.bean.sql.Where;
import pers.richard.ormybatis.dao.OrmybatisBaseDao;

@DaoConfig(table = "WechatOfficialAccount", id="wechatOfficialAccountId" , lowerUnderscore=false)
public class WechatOfficialAccountDao extends OrmybatisBaseDao<WechatOfficialAccount>{
	
	public WechatOfficialAccount byAppId(Integer id) {
		PageHelper.startPage(2, 20);
		return super.selectOne(Where.create(Field.APP_ID, id));
	}
}